home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / datatypes / svg-datatype / svg-fileformatspecs.doc < prev    next >
Text File  |  1996-04-07  |  1KB  |  37 lines

  1.   ================================
  2.   = The SVG Graphics File Format =  - Version 1 as of 24.9.1995 -
  3.   ================================
  4.  
  5.   File Format Information
  6.   ~~~~~~~~~~~~~~~~~~~~~~~
  7.   Pictures in the "SVG Graphics File Format" consist of two parts:
  8.   a header and an attached xpk-packed or unpacked data file.
  9.   Both parts are put into one single file.
  10.  
  11.   Construction:
  12.  
  13.   0x00  ID              UBYTE[18]       "SVG Graphics File"
  14.   0x12  Version         UWORD           always 1 yet
  15.   0x14  GfxDataOffset   ULONG           header length (depends on version)
  16.   0x18  LeftEdge        ULONG
  17.   0x1c  TopEdge         ULONG
  18.   0x20  Width           ULONG
  19.   0x24  Height          ULONG
  20.   0x28  ColorDepth      ULONG           actually available colors
  21.   0x3c  ViewMode32      ULONG           32 Bit ViewMode
  22.   0x40  PixelBits       UBYTE           1, 8, 24 (future: 16, 32)
  23.   0x41  PixelPlanes     UBYTE           # of planes with PixelBits
  24.   0x42  BytesPerLine    ULONG           bpl of a PixelPlane
  25.   0x46  ColorMap        UBYTE [256][3]  empty, if > 256 Colors
  26.  
  27.   After that either follows XPK compressed data or uncompressed
  28.   data, which can be detected by the leading chars "XPK" or "PP20"
  29.   for packed data at GfxDataOffset (relative to beginning of the file).
  30.  
  31.   Note:
  32.  
  33.   24 Bit Data should not be saved planewise, but as 24 Bit RGB instead
  34.   (16 and 32 Bit Data as well, but these are not actually supported at
  35.    the moment, anyway).
  36.  
  37.